package com.cjack.frenchexcel.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 合作商
 * Created by root on 10/5/19
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CooperativeModel {

    private Long id;
    //Fourenisseur          1   对应的合作商编号前缀 F000
    //Acheteur France       2    AF000
    //Acheteur Non France   3    AN000
    //Brestation Et Service 4    PS000
    //Comple Courant        5    CC000
    private Integer type;//合作商类型

    private String number;//合作商编号  1,2这种格式
    private String name;//合作商复杂名称
    private String simpleName;//简名
    private String addr;//合作商地址
    private String emailCode;//合作商邮编
    private String city;//合作商 所在城市
    private String country;//合作商 所在国家

    private Date createTime;
    private Date updateTime;

    @Override
    public int hashCode() {
        return 1;
    }

    @Override
    public boolean equals(Object obj) {
        CooperativeModel m = (CooperativeModel)obj;
        if( m.getSimpleName() != null && m.getSimpleName().equals( this.getSimpleName())){
            return true;
        }else{
            return false;
        }
    }
}

